home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 March / PCWorld_2008-03_cd.bin / v cisle / mediacoder / MediaCoder-0.6.1.4045.exe / extensions / iPod.7z / extension.xsl < prev    next >
Extensible Markup Language  |  2007-09-16  |  5KB  |  94 lines

  1. <?xml version="1.0" encoding="utf-8"?><!DOCTYPE xsl:stylesheet  [
  2.     <!ENTITY nbsp   " ">
  3.     <!ENTITY copy   "©">
  4.     <!ENTITY reg    "®">
  5.     <!ENTITY trade  "™">
  6.     <!ENTITY mdash  "—">
  7.     <!ENTITY ldquo  "“">
  8.     <!ENTITY rdquo  "”"> 
  9.     <!ENTITY pound  "£">
  10.     <!ENTITY yen    "¥">
  11.     <!ENTITY euro   "€">
  12. ]>
  13. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  14.   <xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
  15.   <xsl:include href="../_include/extbase.xsl"/>
  16.   <xsl:template match="/extension">
  17.     <html xmlns="http://www.w3.org/1999/xhtml">
  18.     <head>
  19.     <title><xsl:value-of select="name"/></title>
  20.     <link rel="stylesheet" href="style.css"/>
  21.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  22.     <xsl:call-template name="InitExtension"/>
  23.     <script language="javascript" src="ipod.js"></script>
  24.     </head>
  25.     <body onunload="StopPlay()" onload="Refresh()">
  26.     <div class="extension">
  27.     <div class="panel">
  28.         <div align="center">
  29.             <div>
  30.               <h2><strong> iPod Extension </strong></h2>
  31.               </div>
  32.             <hr />
  33.         </div>
  34.           <table width="100%" border="0">
  35.             <tr>
  36.               <td><xsl:call-template name="AddElement">
  37.                 <xsl:with-param name="element" select="elements/element[@id='hasVideo']"/>
  38.                 </xsl:call-template>:</td>
  39.               <td><xsl:call-template name="AddElement">
  40.                 <xsl:with-param name="element" select="elements/element[@id='video']"/>
  41.                 </xsl:call-template>              </td>
  42.             </tr>
  43.             <tr>
  44.               <td><xsl:call-template name="AddElement">
  45.                 <xsl:with-param name="element" select="elements/element[@id='hasAudio']"/>
  46.                 </xsl:call-template>:</td>
  47.               <td width="120"><xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='audio']"/></xsl:call-template></td>
  48.             </tr>
  49.             <tr>
  50.               <td>Resolution:</td>
  51.               <td><input name="resmode" id="resmode1" type="radio" checked="true" onchange="Refresh()"/><xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='res']"/></xsl:call-template><br/>
  52.               <input name="resmode" id="resmode2" type="radio" onchange="Refresh()"/><xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='width']"/></xsl:call-template> x <xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='height']"/></xsl:call-template>              </td>
  53.             </tr>
  54.             <tr>
  55.               <td>Cropping:</td>
  56.               <td><xsl:call-template name="AddElement">
  57.                 <xsl:with-param name="element" select="elements/element[@id='crop']"/>
  58.                 </xsl:call-template></td>
  59.             </tr>
  60.             <tr>
  61.               <td>Frame rate:</td>
  62.               <td><xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='fps']"/></xsl:call-template> FPS </td>
  63.             </tr>
  64.             <tr>
  65.               <td> Video Bitrate:</td>
  66.               <td><xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='bitrate']"/></xsl:call-template> KBps </td>
  67.             </tr>
  68.             <tr>
  69.               <td>Audio Quality:</td>
  70.               <td><xsl:call-template name="AddElement"><xsl:with-param name="element" select="elements/element[@id='aq']"/></xsl:call-template></td>
  71.             </tr>
  72.           </table>
  73.           <p> </p>
  74.           <hr />
  75.           <div align="center">Progress<br/><iframe src="../_include/progress.htm" width="80%" height="20" frameborder="0" scrolling="no" marginwidth="0" marginheight="0"></iframe></div>
  76.           <hr />
  77.           <p> </p>
  78.           <p align="center">
  79.             <input type="button" value="Play" style="width: 64px" onclick="PlayVideo(lcd())" />
  80.             <input type="button" value="Preview" style="width: 64px" onclick="PlayConvertedVideo(lcd())" />
  81.             <input type="button" value="Skip 10s" style="width: 64px" onclick="SendCommand('seek +10')" />
  82.             <input type="button" value="Crop" style="width: 64px" onclick="SendCommand('show_cropper')" />
  83.             <input type="button" value="SetTime" style="width: 64px" onclick="SendCommand('set_time')" />
  84.             <input type="button" value="Start" style="width: 64px" onclick="SendCommand('transcode')" />
  85.           </p>
  86.     </div>
  87.     <div style="position:absolute; left: 231px; top: 8px; border-style:groove; border-width:medium"> <img src="ipod.png" /> </div>
  88.     <embed width="195" height="146" style="position:absolute; left: 262px; top: 33px; width: 195px; height: 148px;" id="lcd" type="application/x-xulplayer-scriptable-plugin">    </embed>
  89.     </div>
  90.     </body>
  91.     </html>
  92.   </xsl:template>
  93. </xsl:stylesheet>
  94.